package com.rskj.cashbook.dao;

import com.rskj.cashbook.vo.CashBook;
import com.rskj.cashbook.vo.Query.StatementsQueryVo;
import com.rskj.cashbook.vo.ReportDetailVo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface CashBookDao {

    int insert(CashBook cashBook);

    List<CashBook> selectCashBook(CashBook cashBook);

    List<CashBook> selectCashBookGroupByDate(CashBook cashBook);

    BigDecimal selectStatements(StatementsQueryVo queryVo);

    int updateBatch(@Param("cashBooks") List<CashBook> cashBooks);

    int insertBatch(@Param("cashbook") List<CashBook> cashBooks);

    List<ReportDetailVo> selectCashBookReport(StatementsQueryVo queryVo);

}
